{config_load file="lang/$language/lang_$language.conf" section="address_book"}
{if $error!=''}
	<div>
		{$error}
	</div>
{/if}
<h1>{#heading_address#}</h1>

<h3>{#title_standard#}</h3>

<div class="left w44p">
	<div class="al" style="padding:10px; width:210px; background-color: #F2F2F2; border: 1px solid #ccc; color:#686868">
		{$ADDRESS_DEFAULT}<br />
	</div>
</div>
<div class="right w52p">
	{#text_standard#}
</div>
<div class="clearfix"></div><br />

<h3>{#title_addresses#}</h3>
<p>{$ADDRESS_COUNT}</p>
{foreach name=aussen item=addresses from=$addresses_data}
    <strong>{$addresses.NAME}</strong>{if $addresses.PRIMARY=='1'} <em>({#title_standard#})</em>{/if}<br />
    <div class="al" data-role="controlgroup" data-type="horizontal">
		{$addresses.BUTTON_EDIT|replace:'class="css_img_button"':'class="css_img_button" data-role="button" data-theme="d"'}
		{$addresses.BUTTON_DELETE|replace:'class="css_img_button"':'class="css_img_button" data-role="button" data-theme="d"'}
	</div>
	{$addresses.ADDRESS}
{/foreach}
<div class="ac" data-role="controlgroup" data-type="horizontal">
	{$BUTTON_BACK|replace:'class="css_img_button"':'class="css_img_button" data-role="button" data-theme="b"'}
	{$BUTTON_NEW|replace:'class="css_img_button"':'class="css_img_button" data-role="button" data-theme="b"'}
</div>